home *** CD-ROM | disk | FTP | other *** search
- Path: news.u-net.com!news
- From: charlotte@parmo.u-net.com (Thomas Christensen)
- Newsgroups: comp.lang.c++
- Subject: Re: DLL's with classes in them
- Date: Sun, 25 Feb 1996 13:20:54 GMT
- Organization: U-NET limited
- Message-ID: <4gpnpk$kfp@nuntius.u-net.net>
- References: <312C9B55.71F3@dial.pipex.com> <4gkvhk$b1v@nms.telepost.no>
- Reply-To: thc@mailhost.net
- NNTP-Posting-Host: parmo.u-net.com
- X-Newsreader: Forte Free Agent v0.55
-
- Carsten Arnholm <ca@sesam.dnv.no> wrote:
- ...
- >Unfortunately, I do not believe this is possible. DLL's support only C-style
- >API functions. You can have objects inside & outside the DLL, but you cannot
- >import or export such objects.
-
- Just a thought:
- How does Microsoft Foundation Class library do it, then?
-
- In the VC 4.0 you'd define a exportable class in this way:
-
- #define DllExport __declspec( dllexport )
-
- class DllExport magic {
- public:
- int mymagic;
- };
- ...
-
- This class you can use in your application in any way you'd wish.
-
- Thomas Christensen
-
-
-
-